<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='zh-CN' xml:lang='zh-CN' xmlns='http://www.w3.org/1999/xhtml'>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta http-equiv="Content-Language" content="zh-CN"/>
        <meta name="robots" content="index, follow" />
        <link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico" />
        <title>氿上网</title>
        {$system_css}
        {$system_js}
    </head>
    <body>
        <div id="OSC_Screen">
            {include file="header.html"}
            <div id="OSC_Content" class='CenterDiv'>
                {include file='user_nav.html'}
                {include file="message.html"}
                <div class="MainForm" id="reg_page">
                    
                   <p>接收：<a href="/usermessage/receive_new">未读</a> | <a href="/usermessage/receive_readed">已读</a> | <a href="/usermessage/system">系统</a> | <a href="/usermessage/send">发送信息</a></p>
                     <p>发送：<a href="/usermessage/send_list">已发送</a></p>
                   <div>
                       
                         <table width="100%" cellspacing="0" style="border:1px solid #ccc;">
                             <tr align="center"><td colspan="5">标题：{$data.title}&nbsp;&nbsp;{if !empty($data.url)}<a href="{$data.url}" target="_blank">相关链接</a>{/if}</td></tr>
                    
                            <tr >
                                <th  width="15%" style="border:1px solid #ccc;">用户名</th>
                                <th width="20%" style="border:1px solid #ccc;">头像</th>
                                <th  style="border:1px solid #ccc;">内容</th>
                            </tr>
                   
                        <tbody style="border:1px solid #ccc;">
                          
                            {foreach from=$message_children item=list}
                            <tr class="goods_div_{$list.id}">
                                <td  style="border:1px solid #ccc;" width="10%"><img src="{$list.avatar}" width="50" height="50"/></td>
                                <td style="border:1px solid #ccc;" width="20%">{$list.username}</td>
                                <td style="border:1px solid #ccc;padding:10px;" >{$list.content}
                                
                                <p style="text-align:right;">{$list.add_time|date}</p>
                                </td>
                            </tr>  
                            {/foreach}
                        </tbody>
                        <tfoot><tr><td colspan="5">
                                    
                                    
                                    
                                </td></tr></tfoot>
                    </table>
                          <form id="myform" name="myform" action="{$site_url}usermessage/reply" method="post" style="float:left; width:700px;margin-top:20px;" enctype="MULTIPART/FORM-DATA" >
                        <table cellspacing='0' cellpadding='0'>
                            
                            <tr id='tr_user'>
                                <th >内容：</th>
                                <td>
                                    <textarea name="content" id="content" style="width:500px;height:50px;"></textarea>
                                </td>    			
                            </tr>
                            <tr class='buttons'>
                                <th>&nbsp;</th>		
                                <td style='padding:20px 0;'>
                                     <input type="hidden" name="id" value="{$data.id}">
                                    <input type="hidden" name="parent_id" value="{$parent_arr.parent_id}">
                                    <input type="hidden" name="to_user" value="{$parent_arr.from_user}"/>
                                    <input type='submit' value=' 发送 ' class='BUTTON SUBMIT'/><br/><br/>
                                </td>
                            </tr>
                        </table>
                    </form>
                   </div>
                    <div class='clear'></div>
                </div>

            </div>
            <div class='clear'></div></div>
        <div class='clear'></div>
        {include file="footer.html"}
        </div>
     
    </body>
</html>
